/*
 * @Description: 充电桩清分结算路由表
 * @Author: py
 * @Date: 2024-12-12
 */
import { Layout } from '@fl/utils/routerHelper'

const chargeSettleRoute: AppRouteRecordRaw = {
    children: [
        {
            children: [
                {
                    component: () => import('@/pages/charge-settle/charge-manage/station-list.vue'),
                    meta: {
                        permission: ['充电站管理-列表'],
                        title: '充电站管理',
                    },
                    name: 'station-list',
                    path: 'station-list',
                },
                {
                    component: () => import('@/pages/charge-settle/charge-manage/settings-list.vue'),
                    meta: {
                        permission: ['结算设置-列表'],
                        title: '结算设置',
                    },
                    name: 'settle-settings',
                    path: 'settle-settings',
                },
                {
                    component: () => import('@/pages/charge-settle/charge-manage/settings-detail.vue'),
                    meta: {
                        activeMenu: '/charge-settle/charge-manage/settle-settings',
                        hidden: true,
                        noTagsView: true,
                        permission: ['结算设置-表单'],
                        title: '设置详情',
                    },
                    name: 'settle-detail',
                    path: 'settle-detail',
                },
                {
                    component: () => import('@/pages/charge-settle/charge-manage/record-list.vue'),
                    meta: {
                        permission: ['充电账单记录-列表'],
                        title: '充电账单记录',
                    },
                    name: 'record-list',
                    path: 'record-list',
                },
                {
                    component: () => import('@/pages/charge-settle/charge-manage/record-import.vue'),
                    meta: {
                        activeMenu: '/charge-settle/charge-manage/record-list',
                        hidden: true,
                        noTagsView: true,
                        permission: ['充电账单记录-导入'],
                        title: '导入详情',
                    },
                    name: 'record-import',
                    path: 'record-import',
                },
            ],
            meta: {
                alwaysShow: true,
                icon: 'i-solar:settings-outline',
                permission: ['充电站管理-列表', '结算设置-列表', '结算设置-表单', '充电账单记录-列表', '充电账单记录-导入'],
                title: '充电管理',
            },
            name: 'charge-manage',
            path: 'charge-manage',
        },
        {
            children: [
                {
                    component: () => import('@/pages/charge-settle/settle-reconciliate/settlement-list.vue'),
                    meta: {
                        permission: ['结算单管理-列表'],
                        title: '结算单管理',
                    },
                    name: 'settlement-list',
                    path: 'settlement-list',
                },
                {
                    component: () => import('@/pages/charge-settle/settle-reconciliate/settlement-form.vue'),
                    meta: {
                        activeMenu: '/charge-settle/settle-reconciliate/settlement-list',
                        hidden: true,
                        noTagsView: true,
                        permission: ['结算单管理-表单'],
                        title: '结算单表单',
                    },
                    name: 'settlement-form',
                    path: 'settlement-form',
                },
                {
                    component: () => import('@/pages/charge-settle/settle-reconciliate/account-list.vue'),
                    meta: {
                        // icon: 'i-ph:currency-circle-dollar-thin',
                        permission: ['对账单管理-列表'],
                        title: '对账单管理',
                    },
                    name: 'account-list',
                    path: 'account-list',
                },
                {
                    component: () => import('@/pages/charge-settle/settle-reconciliate/account-form.vue'),
                    meta: {
                        activeMenu: '/charge-settle/settle-reconciliate/account-list',
                        hidden: true,
                        noTagsView: true,
                        permission: ['对账单管理-表单'],
                        title: '对账单表单',
                    },
                    name: 'account-form',
                    path: 'account-form',
                },
                {
                    component: () => import('@/pages/charge-settle/settle-reconciliate/settlement-daily-report.vue'),
                    meta: {
                        permission: ['结算日报表-列表'],
                        title: '结算汇总日报表',
                    },
                    name: 'settlement-daily-report',
                    path: 'settlement-daily-report',
                },
            ],
            meta: {
                // alwaysShow: true,
                icon: 'i-tabler:receipt-yen',
                permission: ['结算单管理-列表', '结算单管理-表单', '对账单管理-列表', '对账单管理-表单', '结算日报表-列表'],
                title: '结算对账',
            },
            name: 'settle-reconciliate',
            path: 'settle-reconciliate',
        },
        // {
        //     children: [
        //         {
        //             component: () => import('@/pages/charge-settle/invoice/invoice-list.vue'),
        //             meta: {
        //                 icon: 'i-pepicons-pencil:file',
        //                 title: '用户开票管理',
        //             },
        //             name: 'invoice-list',
        //             path: 'invoice-list',
        //         },
        //         {
        //             component: () => import('@/pages/charge-settle/invoice/invoice-form.vue'),
        //             meta: {
        //                 activeMenu: '/charge-settle/invoice/invoice-list',
        //                 hidden: true,
        //                 noTagsView: true,
        //                 title: '开票表单',
        //             },
        //             name: 'invoice-form',
        //             path: 'invoice-form',
        //         },
        //     ],
        //     meta: {
        //         // alwaysShow: true,
        //         icon: 'i-solar:settings-outline',
        //         title: '开票管理',
        //     },
        //     name: 'invoice-manage',
        //     path: 'invoice-manage',
        // },
    ],
    component: Layout,
    meta: {
        icon: 'i-solar:airbuds-case-charge-outline',
        title: '充电结算',
    },
    name: 'charge-settle',
    path: '/charge-settle',
}

export default chargeSettleRoute
